<table class="form-table-without-line">
    <tr>
        <th>客服嵌入代码</th>
        <td width="700px">
            <textarea minlength="10" maxlength="660" rows="14" placeholder="请输入javascript代码"></textarea>
            <button type="button" class="btn-kf">保存</button>
        </td>
    </tr>
</table>

<script>
    // 刷新配置信息
    Classify.queryExt("settings", "kf", false, "", function(v) {
        $("textarea").html(v);
    });

    $(".btn-kf").click(function() {
        var v = $("textarea").val();
        Classify.saveExt("settings", "kf", v, function(r) {
            alert2("保存成功！");
        });
    });
</script>
